package chp13;

public class Test9 {
    public static void main(String[] args) {
        //截取字符串
        String content = "今天星期六,明天星期天";
        String str = content.substring(2);
//        System.out.println(content);
        System.out.println(str);

        //[2,4)
        str = content.substring(2,4);
        System.out.println(str);

        //截取“明天”
        System.out.println(content.substring(2,2+3));

    }
}
